package hu.u_szeged.inf.ovrt.filelister.commands;

import hu.u_szeged.inf.ovrt.filelister.core.beans.ApplicationState;
import hu.u_szeged.inf.ovrt.filelister.ui.UserInterface;

import java.util.Map;

/**
 * Exit module.
 */
public class Exit extends AbstractCommand {

    /**
     * Constructor, that sets user interface.
     * @param ui user interface.
     */
    public Exit(UserInterface ui) {
        super(ui);
    }

    @Override
    public void execute(ApplicationState state, Map<String, String> parameters) {
        Runtime.getRuntime().exit(0);
    }
}
